package com.juren.controller;

import com.juren.service.IHelloService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**3
 * @ClassName FeignCustomerController
 * @Description 消费者
 * @Author zhangtao
 * @Date 2019/5/13 15:03
 * @Version 1.0
 **/
@RestController
@RequestMapping("say")
public class FeignConsumerController {
    @Autowired
    private IHelloService helloService;

    @GetMapping("helloTo")
    private String sayHello(@RequestParam(value = "name") String name){
        return helloService.test(name);
    }
}
